package com.example.demo.repository;

import com.example.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * @author yexi
 */
public interface UserRepository extends JpaRepository<User, Integer> {
    public User findUserByUsername(String name);

    public User findUserByUsernameAndPassword(String name, String password);

    public List<User> findUserByUsernameLike(String name);


    @Override
    <S extends User> S save(S entity);


}

